﻿#ifndef CONTROLLER_H
#define CONTROLLER_H
#include "View.h"
#include "MineralWater.h"
#include "Soda.h"
#include "Juice.h"

class Controller
{
public:
    Controller();
    bool waitCommand();

private:
    View view;
    MineralWater water;
    Soda soda;
    Juice juice;
    bool openMachine(string password);
    bool sendBeverage(Beverage beverage);
    bool isPaid(Beverage beverage,int balance);
    bool isSoldOut(Beverage beverage);
    bool addBeverage(Beverage beverage,int number);
};

#endif // CONTROLLER_H
